package com.slz3.business.module.wmsManagement.wmsPurchaseOrderSelf.domain;

import com.slz3.business.module.wmsManagement.wmsPurchaseOrderLine.domain.WmsPurchaseOrderLine;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;

@Entity
@Table(schema = "wms_management", name = "wms_purchase_order_self")
@Data
@EqualsAndHashCode(callSuper = true)
public class WmsPurchaseOrderSelf extends WmsPurchaseOrderSelfEntity implements Serializable {

    private static final long serialVersionUID = 3928173855627287110L;
    @Transient
//    @NotNull(message = "ser1 必须非空!", groups = {Add.class, Modify.class})
//    @Length(min = 1, max = 255, message = "ser1 必须非空!", groups = {Add.class, Modify.class})
    private String serValid;

    @Transient
//    @NotNull(message = "ser2 必须非空!", groups = {Add.class, Modify.class})
//    @Length(min = 1, max = 255, message = "ser2 必须非空!", groups = {Add.class, Modify.class})
    private String serValid2;

    /**
     * 采购订单详细line
     */
    @Transient
    private List<WmsPurchaseOrderLine> wmsPurchaseOrderLines;

}
